/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- CSS Variables (from Tailwind Config) --- */
:root {
    --cream: #FAF8F5;
    --light-purple: #EAE6F0;
    --mid-purple: #D1C4E9;
    --dark-purple: #5A4A7C;
    --dark-brown: #4E342E;
    --accent-orange: #F59E0B;
    --light-orange: #FFECB3;
    --white: #FFFFFF;
    --green-400: #68D391; /* For 'is' border */
    --green-700: #2F855A; /* For 'is' text */
    --green-500: #48BB78; /* For 'is' icon */
    --red-400: #FC8181;   /* For 'is-not' border */
    --red-700: #C53030;   /* For 'is-not' text */
    --red-500: #F56565;   /* For 'is-not' icon */
}

/* --- Base & Body Styles --- */
body {
    background-color: var(--cream);
    color: var(--dark-brown);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5 {
    color: var(--dark-purple);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; line-height: 2.5rem; }
h2 { font-size: 1.875rem; line-height: 2.25rem; }
h3 { font-size: 1.5rem; line-height: 2rem; }
h4 { font-size: 1.25rem; line-height: 1.75rem; }
h5 { font-size: 1.125rem; line-height: 1.75rem; }

p {
    line-height: 1.625;
    margin-bottom: 1rem;
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--dark-purple);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Utility & Layout --- */
.container {
    max-width: 64rem; /* 1024px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* 24px */
    padding-right: 1.5rem; /* 24px */
}

.content-section {
    margin-top: 5rem; /* 80px */
    margin-bottom: 5rem; /* 80px */
}

@media (min-width: 768px) {
    .content-section {
        margin-top: 7rem; /* 112px */
        margin-bottom: 7rem; /* 112px */
    }
}

.card {
    background-color: var(--white);
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem; /* 32px */
}

@media (min-width: 768px) {
    .card {
        padding: 3rem; /* 48px */
    }
}

.section-title {
    text-align: center;
    font-size: 1.875rem; 
    line-height: 2.25rem;
    margin-bottom: 3rem; 
}

.section-subtitle {
    font-size: 1.125rem; 
    line-height: 1.75rem;
    text-align: center;
    max-width: 48rem; /* 768px */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem; 
}

/* --- Header --- */
header {
    background-color: var(--white);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
    color: var(--dark-purple);
}

.nav-links {
    display: flex;
    gap: 1rem; /* 16px */
}

.nav-links a {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    font-weight: 500;
}

/* --- Main Content --- */
main.container {
    padding-top: 3rem; /* 48px */
    padding-bottom: 3rem; /* 48px */
}

@media (min-width: 768px) {
    main.container {
        padding-top: 5rem; /* 80px */
        padding-bottom: 5rem; /* 80px */
    }
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
}

.hero-logo {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem; /* 24px */
    width: 10rem; /* 160px */
    height: 10rem; /* 160px */
    border-radius: 9999px; /* full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 4px solid var(--white);
}

@media (min-width: 768px) {
    .hero-logo {
        width: 12rem; /* 192px */
        height: 12rem; /* 192px */
    }
    h1 {
        font-size: 3rem; /* 48px */
        line-height: 1;
    }
}

.hero-subtitle {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
    max-width: 42rem; /* 672px */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem; /* 20px */
        line-height: 1.75rem; /* 28px */
    }
}


/* --- About Section --- */
.about-card {
    display: flex;
    flex-direction: column; /* Mobile-first: stack vertically */
    align-items: center;
}

.about-avatar {
    width: 8rem; /* 128px */
    height: 8rem; /* 128px */
    border-radius: 9999px;
    border: 4px solid var(--light-purple);
}

.about-text {
    margin-top: 2rem; /* 32px */
    text-align: center;
}

.about-text .subtitle {
    font-size: 1.125rem;
    line-height: 1.625;
}

.about-text strong {
    color: var(--dark-purple);
}

@media (min-width: 768px) {
    .about-card {
        flex-direction: row; /* Desktop: side-by-side */
        align-items: center;
    }
    .about-avatar {
        width: 10rem; /* 160px */
        height: 10rem; /* 160px */
    }
    .about-text {
        margin-top: 0;
        margin-left: 3rem; /* 48px */
        text-align: left;
    }
}

/* --- Safety Section --- */
.safety-flex-container {
    display: flex;
    flex-direction: column; /* Mobile-first */
    gap: 2rem; /* 32px */
}

@media (min-width: 768px) {
    .safety-flex-container {
        flex-direction: row; /* Desktop */
    }
}

.safety-card {
    flex: 1; /* Each card takes equal space */
}
.safety-card ul {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px */
}
.safety-card li {
    display: flex;
    align-items: flex-start;
}
.safety-card li svg {
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    margin-right: 0.75rem; /* 12px */
    flex-shrink: 0;
    margin-top: 0.125rem; /* 2px */
}

.card-is {
    border-top: 4px solid var(--green-400);
}
.card-is h3 { color: var(--green-700); }
.icon-check { color: var(--green-500); }

.card-is-not {
    border-top: 4px solid var(--red-400);
}
.card-is-not h3 { color: var(--red-700); }
.icon-cross { color: var(--red-500); }

/* --- Resources --- */
.resources-card {
    overflow: hidden; /* To contain shadows and rounded corners */
}
.resources-main-cta {
    padding: 2.5rem;
    background-color: var(--light-purple);
    text-align: center;
}
.resources-main-cta p {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--dark-brown);
}

.cta-button {
    display: inline-block;
    background-color: var(--dark-purple);
    color: var(--white);
    font-weight: 700;
    padding: 0.75rem 2rem; /* 12px 32px */
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}
.cta-button:hover {
    background-color: var(--dark-brown);
    color: var(--white);
}

.resources-grid-container {
    padding: 2.5rem;
}
.resources-grid-container h4 {
    text-align: center;
    margin-bottom: 2rem;
}
.resources-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: 1 column */
    gap: 2rem; /* 32px */
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    }
}

.resource-item {
    background-color: var(--cream);
    padding: 1.5rem; /* 24px */
    border-radius: 0.5rem; /* 8px */
    text-align: center;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}
.resource-item p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
}
.resource-item h5 {
    margin-bottom: 0.5rem;
}
.resource-item a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-purple);
}
.resource-item a:hover {
    text-decoration: underline;
}
.resource-details {
    font-size: 0.875rem;
    font-weight: 600;
}
.resource-details p {
    margin-bottom: 0.25rem;
}
.resource-details strong {
    color: var(--dark-purple);
}

/* --- Join Us Section --- */
.join-section {
    text-align: center;
}
.join-flex-container {
    display: flex;
    flex-direction: column; /* Mobile-first */
    justify-content: center;
    align-items: center;
    gap: 2rem; /* 32px */
}

@media (min-width: 768px) {
    .join-flex-container {
        flex-direction: row; /* Desktop */
        align-items: stretch; /* Make cards same height */
    }
}

.join-card {
    flex: 1; /* Take equal space */
    max-width: 24rem; /* 384px */
    width: 100%;
    transition: all 0.2s ease-in-out;
}

a.join-card {
    text-decoration: none;
    color: var(--dark-brown);
}

.join-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.25rem);
}
.join-card h3 {
    margin-bottom: 0.5rem;
}
.join-card p {
    margin-bottom: 1.5rem; /* 24px */
}
.join-card-link {
    font-weight: 700;
    color: var(--dark-purple);
}
.socials-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* 24px */
}
.social-icon {
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    color: var(--dark-brown);
    transition: color 0.2s ease-in-out;
}
.social-icon:hover {
    color: var(--dark-purple);
}

.socials-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* 24px */
}

.social-logo {
    width: 48px;  /* Total size of the circle */
    height: 48px;

    background-color: transparent;
    border-radius: 9999px; /* Full circle */

    border: 2px solid transparent; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    
    padding: 8px; 
    
    object-fit: contain; 
    
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;

    -webkit-filter: brightness(0) saturate(100%) invert(31%) sepia(16%) saturate(2220%) hue-rotate(219deg) brightness(91%) contrast(84%);
    filter: brightness(0) saturate(100%) invert(31%) sepia(16%) saturate(2220%) hue-rotate(219deg) brightness(91%) contrast(84%);
}

.social-logo:hover {
    /* Highlight effect on hover */
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);

    -webkit-filter: brightness(0) saturate(100%) invert(20%) sepia(18%) saturate(1020%) hue-rotate(346deg) brightness(90%) contrast(89%);
    filter: brightness(0) saturate(100%) invert(20%) sepia(18%) saturate(1020%) hue-rotate(346deg) brightness(90%) contrast(89%);
}

/* --- Stream Section --- */
.stream-embed-container {
    padding: 0.5rem; /* 8px */
    overflow: hidden;
}

#twitch-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* --- Footer --- */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--light-purple);
    margin-top: 5rem; /* 80px */
}

.footer-content {
    padding-top: 2rem; /* 32px */
    padding-bottom: 2rem; /* 32px */
    text-align: center;
}

.footer-content p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    margin-bottom: 0;
}

.footer-disclaimer {
    font-size: 0.75rem; /* 12px */
    line-height: 1rem; /* 16px */
    margin-top: 0.5rem; /* 8px */
}

/* --- Screen-reader Only Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}